package com.it.mybatis.spring.sqlSessionFactory;

import com.it.mybatis.spring.sqlSession.XNode;

import java.sql.Connection;
import java.util.Map;

/**
 * @author 胡凯
 * @create 2021/11/25 18:56
 * 定义配置项
 */
public class Configuration {
    // 定义连接
    protected Connection connection;
    // 定义数据库连接
    protected Map<String, String> dataSource;
    // 定义扫描的sql节点
    protected Map<String, XNode> mapperElement;

    public void setConnection(Connection connection) {
        this.connection = connection;
    }

    public void setDataSource(Map<String, String> dataSource) {
        this.dataSource = dataSource;
    }

    public void setMapperElement(Map<String, XNode> mapperElement) {
        this.mapperElement = mapperElement;
    }
}
